package com.aw.baselib.util.update;


import com.aw.baselib.util.AwDataUtil;

/**
 * Created by hzw
 */

public class UpdateBean {

    private String id;
    private String appVersion;
    private String appCode;
    private String appName;
    private String appurl;
    private String description;
    private String phoneType;
    private String isForceRenew;

    public boolean isForceUpdate() {
        if(AwDataUtil.isEmpty(isForceRenew)) {
            return false;
        }
        return "1".equals(isForceRenew);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getAppurl() {
        return appurl;
    }

    public void setAppurl(String appurl) {
        this.appurl = appurl;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPhoneType() {
        return phoneType;
    }

    public void setPhoneType(String phoneType) {
        this.phoneType = phoneType;
    }

    public String getIsForceRenew() {
        return isForceRenew;
    }

    public void setIsForceRenew(String isForceRenew) {
        this.isForceRenew = isForceRenew;
    }

    public String getAppCode() {
        return appCode;
    }

    public void setAppCode(String appCode) {
        this.appCode = appCode;
    }

    @Override
    public String toString() {
        return "UpdateBean{" +
                "id='" + id + '\'' +
                ", appVersion='" + appVersion + '\'' +
                ", appCode='" + appCode + '\'' +
                ", appName='" + appName + '\'' +
                ", appurl='" + appurl + '\'' +
                ", description='" + description + '\'' +
                ", phoneType='" + phoneType + '\'' +
                ", isForceRenew='" + isForceRenew + '\'' +
                '}';
    }
}
